/*
    Description: process preload registry manager
 */
#ifndef PRELOAD_REGISTRY_MANAGER_H
#define PRELOAD_REGISTRY_MANAGER_H

#include "performance/utils/registry_utils.h"

namespace PERF {

class PreloadAppPathManager {
public:
    PreloadAppPathManager();
    ~PreloadAppPathManager();
    bool GetPath(const std::string &pname, std::string &path);
    void PutEntry(const std::string &pname, const std::string &path);
    void Remove(const std::string &pname);

private:
    HKEY hKeyPreloadApp{ nullptr };
    const std::string REGISTRY_PATH = R"(\Software\VMAgent\Performance\PreloadApp)";
};
}  // namespace PERF

#endif